package trip

import (
	"context"
	trippb "coolcar/proto/gen/go"
	"log"
)

// TripServiceServer is the server API for TripService service.
// type TripServiceServer interface {
// 	GetTrip(context.Context, *GetTripRequest) (*GetTripResponse, error)
// }
//TripService impl server
type Service struct{}

func (*Service) GetTrip(c context.Context, req *trippb.GetTripRequest) (*trippb.GetTripResponse, error) {
	log.Print(req)
	resp := trippb.GetTripResponse{
		Id: req.Id,
		Trip: &trippb.Trip{
			Start:       "abc",
			End:         "rdf",
			DurationSec: 10000,
			FeeCent:     301020,
		},
	}
	return &resp, nil
}
